//
//  LongriseRouter.h
//  HttpDemo
//  通信组件，用于组件之间的通信
//  Created by 程三 on 17/8/5.
//  Copyright © 2017年 程三. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^LongriseRouterBlock)(id obj);

//代理
@protocol LongriseRouterDelegater <NSObject>

@required
//设置各种参数
-(void)setParams:(id)obj block:(LongriseRouterBlock)block ;

@end

@interface LongriseRouter : NSObject

#pragma mark  打开一个类，传入类名，返回类的实例对象
+(id)openURL:(NSString *)className;

#pragma mark 判断某个实例对象实现了LongriseRouterDelegater代理
+(BOOL)isImplLongriseRouterDelegaterWithObject:(id)obj;

@end
